<?php
require("config.php");

unset($user['username']);
save_user($user);

if (isset($user['burl']) && $user['burl']) {
	header("Location: " . $user['burl']);
} else {
	header("Location: ".URL_ROOT."index.php");
}